<?php

declare(strict_types=1);

namespace App\Request\Test\Exception;

use App\Request\FormRequest;

class ExceptionRequest extends FormRequest
{
    public function rules(): array
    {
        return [
            'exception_name' => "required|regex:/^\w+/"
        ];
    }

    public function messages(): array
    {
        return [
            'exception_name.required' => "异常名称不能为空。",
            'exception_name.regex' => "异常名称格式错误。",
        ];
    }
}
